{% extends "base.html" %}



{% block main_content %}
    <div class="tab-content vertical-tab-content">
        {% include 'message.html' %}
         <div class="panel panel-default">
                <div class="panel-heading">
                    <span style="font-weight: bold">创建用户</span>
                    <a style="float:right;" href="/users/">
                        <i class="glyphicon glyphicon-th" title="返回"></i>
                    </a>
                </div>
                <div class="panel-body">

<div role="tabpanel" class="tab-pane active" id="create_user">
               <form action="/create_user/" method="POST">
            {{ form.csrf_token }}
            <table class="table">
                <tbody>
                <tr>
                    <td>{{ form.name.label }}</td>
                    <td>{{ form.name }} </td>
                </tr>
                <tr>
                    <td>{{ form.account.label }}</td>
                    <td>{{ form.account }} </td>
                </tr>
                <tr>
                    <td>{{ form.password.label }}</td>
                    <td>{{ form.password }} </td>
                </tr>
                <tr>
                    <td>{{ form.password2.label }}</td>
                    <td>{{ form.password2 }} </td>
                </tr>
                <tr>
                    <td>{{ form.submit }}</td>
                    <td>&nbsp;</td>
                </tr>
                </tbody>
            </table>
               </form>
        </div>

                </div>
            </div>

    </div>
{% endblock %}